/**
 * feat：添加新的功能
 * fix：修复js逻辑bug
 * merge：分支合并
 * style：样式等不影响js逻辑的修改
 * refactor：重构，既不新增功能也不修改功能
 * perf：性能优化等
 * test：新增测试或者修改测试文件
 * build：打包工具的替换
 * chore：更改构建的配置文件或添加辅助的工具
 * revert：代码回滚
 *
 * @url "http://wiki.scm.logibeat.com/pages/viewpage.action?pageId=14581829"
 */

module.exports = {
  extends: ["@commitlint/config-conventional"],
  rules: {
    "type-enum": [
      2,
      "always",
      [
        "feat",
        "fix",
        "style",
        "refactor",
        "perf",
        "test",
        "build",
        "chore",
        "revert",
        "merge"
      ]
    ],
    "subject-max-length": [1, "always", 150]
  }
}
